home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / print / rpload.exe / REMOTE.BAT < prev    next >
DOS Batch File  |  1991-07-24  |  2KB  |  44 lines

  1. @ECHO OFF
  2. rem --------------------------------------------------------------------
  3. rem PROGRAM NAME    : REMOTE.BAT
  4. rem
  5. rem AUTHOR          : David Truncale
  6. rem ORIGINAL DATE   : 7/22/91
  7. rem REVISED DATE    : 7/24/91  - Pass print server name in params.
  8. rem
  9. rem PURPOSE         : The purpose of this batch file is to load RPRINTER
  10. rem                 : from the user's AUTOEXEC.BAT file.  The program
  11. rem                 : assumes that PSERVER'S name is passed in variable
  12. rem                 : %1 and printer number is passed in variable %2.
  13. rem                 :
  14. rem                 : The program checks the ERRORLEVEL returned by
  15. rem                 : RPRINTER.EXE and, if set, pauses for 10 seconds
  16. rem                 : and then tries to load RPRINTER a second time.
  17. rem                 : This should ensure that RPRINTER is loaded every
  18. rem                 : time a user reboots their machine (as opposed to
  19. rem                 : every OTHER time, when this technique is NOT
  20. rem                 : used).
  21. rem                 :
  22. rem --------------------------------------------------------------------
  23. :START
  24. IF "%2" == "" GOTO NOPARMS
  25. RPRINTER %1 %2
  26. IF NOT ERRORLEVEL 1 GOTO END
  27. ECHO Unloading RPRINTER, Please standby...
  28. SLEEP 5
  29. RPRINTER %1 %2 -R
  30. ECHO Reloading RPRINTER, Please standby...
  31. SLEEP 5
  32. GOTO START
  33. :NOPARMS
  34. ECHO 
  35. ECHO You must specify the name of your print server and the printer
  36. ECHO number (0 thru 15).  For example:
  37. ECHO.
  38. ECHO    REMOTE PSERVE 8
  39. ECHO.
  40. ECHO If you're not sure of your print server name or printer number,
  41. ECHO please see your LAN Administrator.
  42. ECHO.
  43. :END
  44.